﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.EvaluateNurseCare;

namespace VOL.SmartMecial.Services.EvaluateNurseCare
{
    public class PatientReCordService: IPatientReCordService
    {
        private readonly IBaseRepository<Patient> _patientRepo;

        public PatientReCordService(IBaseRepository<Patient> _patientRepo)
        {
            this._patientRepo = _patientRepo;
        }


        public  async Task<List<Patient>> GetPatientReCord()
        {
            var patients = _patientRepo.GetAll();
            return await Task.FromResult(patients.ToList());
        }

      
    }
}
